﻿@using Smartstore.Utilities

@model GdprConsentModel

@{
    var id = "gdpr-consent-" + CommonHelper.GenerateRandomInteger();
    var privacyInfoUrl = await Url.TopicAsync("PrivacyInfo");
}

<div class="form-group gdpr-consent mb-0" attr-class='(Model.SmallDisplay, "small")'>
    <div class="form-check mb-0">
        <input asp-for="GdprConsent" id="@id" class="gdpr-consent-check form-check-input" sm-ignore-label="true" sm-switch="false" data-form-type="consent,privacy_policy" />
        <label class="form-check-label" for="@id">
            @Html.Raw(T("Gdpr.Consent.DetailText" + (Model.SmallDisplay ? ".Small" : ""), privacyInfoUrl))
        </label>
    </div>
    <span asp-validation-for="GdprConsent"></span>
</div>
